<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <style>
        html, body {
        	height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }
        .content {
        	height: 100%;
        	padding: 0 46px;
        	display: -webkit-box;
        	-webkit-box-align: center;
        }
        .main {
        	width: 100%;
        	border-radius: 5px;
        	background-color: #fff;
        	overflow: hidden;
        }
        .main .main_t {
        	height: 50px;
        	line-height: 50px;
        	font-size: 16px;
        	color: #333;
        	text-align: center;
        	border-bottom: 1px solid #e8e8e8;
        }
        .main .main_b {
            padding-bottom: 0;
            text-align: center;
        }
        .main_b img{
            margin: 0 auto;
            display: block;
            width: 54px;
            margin-top: 20px;
            margin-bottom: 16px;
        }
        .btn_box{
            line-height: 50px;
            color: #999;
            border-top: 1px solid #e8e8e8;
            margin-top: 20px;
        }
        .btn_box span{
            width: 50%;
            float: left;
            text-align: center;
        }
        .info {
            color: #333;
            font-size: 15px;
            line-height: 15px;
            text-align: center;
        }
        .more{
            color: #e62442;
            margin-left: -1px;
        }
        .back{
            border-right: 1px solid #e8e8e8;
        }
    </style>
</head>
<body>
	<div class="content" id="dialog">
	    <div class="main">
            <div class="main_b">
                <div id="orderC">
                    <img src="../image/success.png">
                </div>
                <div class="info">已下单成功，等待骑手取件</div>
                <div class="btn_box">
                    <span class="back" tapmode onclick="fnClose();">返回</span>
                	<span class="more" tapmode onclick="toViewOrder();">查看订单</span>
                </div>
	    	</div>
	    </div>
	</div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.js"></script>
<script type="text/javascript">
    apiready = function(){

    };

    function toViewOrder () {
        var order_id = api.pageParam.order_id;
        api.openWin({
            name: 'package_order',
            url: './package_order.html',
            reload: true,
            pageParam: {
                id: order_id,
                status : 2
            }
        });
    };

    // 关闭
    function fnClose() {
        setTimeout(function() {
            api.closeToWin({
                name: 'root'
            });
        }, 200);
    }
</script>
</html>